<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/space.css" rel="stylesheet" type="text/css" />
<title><?php echo $spacename?></title>
</head>

<body>
<div id="container">
	<!--头部开始-->
	<?php include(dirname(__FILE__)."/member_head.htm");?>
    <!--头部结束-->
    <!--中间开始-->
    <div id="spacemain">
    	<div id="space_main">
        	<?php include(dirname(__FILE__)."/member_left.htm");?>
        	<!--左边结束-->

            <div id="space_right"><!--右边开始-->

                <div class="space_notice">
                	<div class="space_title02">
                    	<ul>
                        <li><?php echo $uname?> 的提问</li>
                      </ul>
                  </div>
                  <div class="space_notice_text">
                    <table width="100%" border="0" align="center" cellpadding="1" cellspacing="1" >
                      <tr>
                        <td width="54%" height="30" align="center" bgcolor="#FDFEE9">问题</td>
                        <td width="8%" height="30" align="center" bgcolor="#FDFEE9">悬赏</td>
                        <td width="11%" height="30" align="center" bgcolor="#FDFEE9">回答数</td>
                        <td width="11%" height="30" align="center" bgcolor="#FDFEE9">问题状态</td>
                        <td width="16%" height="30" align="center" bgcolor="#FDFEE9">提问时间</td>
                      </tr>
                      <?php
                      $mylist = $dlist->GetDataList();
                      while($row = $mylist->GetArray('dm'))
                      {
						$row['dateline'] = GetDateMk($row['dateline']);
						if($row['status'] == 1){
							$row['dbstatus'] = 1;
							$row['status'] = '已解决';
						}elseif($row['expiredtime'] < $timestamp) {
							$row['dbstatus'] = 3;
							$row['status'] = '已过期';
						}elseif($row['status'] == 2) {
							$row['dbstatus'] = 2;
							$row['status'] = '已结束';
						}else{
							$row['dbstatus'] = 0;
							$row['status'] = '未解决';
						}
                      ?>
                      <tr>
                        <td height="28" align="center" bgcolor="#FFFFFF"><a href="../ask/question.php?id=<?php echo $row['id'];?>" title="<?php echo $row['title'];?>" target="_blank"><?php echo $row['title']?></a></td>
                        <td height="28" align="center" bgcolor="#FFFFFF"><?php echo $row['reward']?></td>
                        <td height="28" align="left" bgcolor="#FFFFFF" class="space_viewthread_title"><?php echo $row['replies']?></td>
                        <td height="28" align="center" bgcolor="#FFFFFF"><?php echo $row['status']?></td>
                        <td height="28" align="center" bgcolor="#FFFFFF"><?php echo $row['dateline']?></td>
                      </tr>
                      <?php
                      }
                      ?>
                    </table>
                    <div class="space_news_text">&nbsp;&nbsp;<?php echo $dlist->GetPageList(7);?></div>
                    </div>
                </div>
            </div><!--右边结束-->
            <div class="clear">
            </div>
        </div>
    </div>
    <!--中间结束-->
    <!--底部开始-->
	<?php include(dirname(__FILE__)."/member_footer.htm");?>
    <!--底部结束-->

</div>
</body>
</html>
